package com.xj.business.simulate.bean.model;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.xj.common.model.Device;
import com.xj.common.model.Driver;
import com.xj.common.model.Point;
import com.xj.common.model.Tenant;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.List;
import java.util.Map;

@Data
@AllArgsConstructor
@Accessors(chain = true)//链式访问
@JsonInclude(JsonInclude.Include.NON_NULL)
public class ModelData {

    private List<Tenant> tenants;

    /**
     * tenantid , Drivers
     */
    private Map<Long,List<Driver>> drivers;

    private Map<Long ,List<Device>> devices;

    private Map<Long ,List<Point>> points;

    /**
     * deviceid <pointName,Point>
     */
    private Map<Long ,Map<String,Point>> pNameToPoints;


    private Map<Long ,Map<Long,Point>> pidToPoints;

    public ModelData(){

    }



}
